package com.yunwei.api.controller;

import com.yunwei.entity.LoginUser;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author weijianxing on 10/7/15.
 */
@RestController
@RequestMapping(ApiController.apiPrefix + "user")
public class LoginUserController {

    @RequestMapping(value = "list")
    public List<LoginUser> list() {
        ArrayList<LoginUser> arrayList = new ArrayList<>();
        for (Integer i = 0; i < 10; i++) {
            LoginUser user = new LoginUser();
            user.setId(i);
            arrayList.add(user);
        }

        return arrayList;
    }

}
